Playing Card Shuffler
(14 actions, 8 KB)
0 Comment
https://deckofcardsapi.com
1 If
[Shortcut Input]
has any value
2 Get Numbers from
[Shortcut Input]
3 Otherwise
4 Ask for
Number
Input
AskActionDefaultAnswerNumber
:
5
AskActionAllowsNegativeNumbers
:
false
AskActionAllowsDecimalNumbers
:
false
AskActionPrompt
:
🤖 How many cards?
5 End If »
6 Get Contents of URL
https://deckofcardsapi.com/api/deck/new/draw/?count=
[5 If Result]
»
7 Repeat with Each in
[6 Contents of URL
as Dictionary.cards
]
8 Get Dictionary Value for
image
in
[Repeat Item]
»
9 Get Contents of URL
[8 Dictionary Value]
»
10 Get Images from
[9 Contents of URL]
11 End Repeat with Each »
12 Combine Images
[11 Repeat Results]
Horizontally »
ImageCombineSpacing
:
5
13 Quick Look
[12 Combined Image]